package com.cdz.charger.service.impl;

import com.cdz.charger.mapper.DataStatisticsMapper;
import com.cdz.charger.service.IDataStatisticsService;
import com.cdz.charger.vo.DataStatisticsVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class DataStatisticsServiceImpl implements IDataStatisticsService {

   @Autowired
   private DataStatisticsMapper dataStatisticsMapper;

    /**
     * 统计充电桩各状态数量
     * @return
     */
    @Override
    public List<DataStatisticsVo> getChargerCount() {
        List<DataStatisticsVo> list = dataStatisticsMapper.getChargerCount();
        return list;
    }
}
